

const columns = [
  {
    title: '文本',
    key: 'label',
  },
  {
    title: '值',
    key: 'value',
  },
  {
    title: '排序',
    key: 'sort',
  },
]

export const crudOptions = (vm) => {
  return {
    formOptions:{
      appendToBody:true
    },
    rowHandle: {
      // columnHeader: '操作',
      width: 180,
      view: {
        thin: true,
        text: null,
      },
      edit: {
        thin: true,
        text: null,
      },
      remove: {
        thin: true,
        text: null,
      },
    },
    columns
  }
}
